<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <!-- 这个页面中不要包含有js!!! -->
  </head>  
  <body>
  	<!-- 验证还是jquery-validation好用，这里省事没用 -->
	<form class="auform" id="companyForm" method="post">
		<input type="hidden" name="compId" id="compId">
		<table class="autable">
		
			<tr>
			<c:if test="${empty param.update}">
				<td class="autd1">国   家：</td>
				<td class="autd2"><input name="country" class="easyui-validatebox txt" validType="length[0,30]" class="txt" style="width:150px;" ></td>
			<td class="autd1">省   份：</td>
				<td class="autd2"><input name="province" class="easyui-validatebox txt" validType="length[0,20]" class="txt" style="width:150px;"></td>
			
			</c:if>
			
			</tr>
			<tr>
			<td class="autd1">城   市：</td>
				<td class="autd2"><input name="city" class="easyui-validatebox txt" validType="length[0,20]" style="width:150px;"></td>
				<td class="autd1">公司名：</td>
				<td class="autd2"><input name="compName" class="easyui-validatebox txt" validType="length[2,50]" style="width:150px;" required="true"><span class="red">*</span></td>
				
			</tr>
			<tr>
			
				<td class="autd1">街  道：</td>
				<td class="autd2"><input name="street" id="street" class="easyui-validatebox txt" validType="length[0,100]" class="txt" style="width:150px;" /></td>
				<td class="autd1">公司电话：</td>
				<td class="autd2"><input name="compTel" id="compTel"  class="easyui-validatebox txt"  validType="length[0,20]" style="width:150px;"></td>
				
			</tr>
			
			<tr>
			<td class="autd1">公司传真：</td>
				<td class="autd2"><input name="compFax" class="easyui-validatebox txt" validType="length[0,20]" style="width:150px;" ></td>
				<td class="autd1">信用额度：</td>
				<td class="autd2"><input name="creditLimit" class="easyui-validatebox txt" validType="length[0,10]" style="width:150px;"></td>
				
			</tr>	
			<tr>
			<td class="autd1">付款期限(天)：</td>
				<td class="autd2"><input name="payTime" id="payTime"  class="easyui-numberbox txt" min="1" max="10" precision="0" style="width:150px;"></td>
				<td class="autd1">LOGO：</td>
				<td class="autd2"><input name="compLogo" id="compLogo" class="txt" style="width:150px;color: #ccc;" readonly="readonly" onclick="uploadFile('compLogo');"></td>
			
			<td class="autd1">&nbsp;</td>
			<td class="autd2">&nbsp;</td>
			
			</tr>			
			<tr>
				<td class="autd3" colspan="2">
					<a href="#" id="btn-back" onclick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
					
				</td>
				<td class="autd3" colspan="2">
					
					<a href="#" id="btn-add" onclick="addOrUpdateCompany('${param.update}');" class="easyui-linkbutton" iconCls="icon-save">保存</a>
				</td>
			</tr>
		</table>
	</form>
  </body>
</html>
